package com.example.album;

import java.util.List;

import org.hibernate.annotations.processing.Find;
import org.springframework.data.jpa.repository.JpaRepository;

public interface CategoryRepository extends JpaRepository<Category, String> {
    List<Category> findAll();
    Category findByCategoryName(String categoryName);
    Category findByCategoryId(String categoryId);
    Category save(Category category);
    //获取类别总数
    long count();
}
